package cn.itsource.shop.controller;

import cn.itsource.base.util.AjaxResult;
import cn.itsource.shop.dto.ShopDto;
import cn.itsource.shop.service.IShopService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/shop")
public class ShopController {
    @Autowired
    private IShopService shopService;

    @PostMapping("/register")
    public AjaxResult register(@RequestBody ShopDto dto){
      return shopService.register(dto);
    }
}
